package dao.impl;

import com.mysql.cj.AbstractQuery;
import dao.UserDao;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import pojo.User;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import util.MyBatisUtil;
public class UserDaoImpl implements UserDao {
    @Override
    public List<User> findAll() {
        return MyBatisUtil.getSession().getMapper(UserDao.class).findAll();

    }
}
